<?php
/**
 * Created by IntelliJ IDEA.
 * User: m1573
 * Date: 2022/7/21
 * Time: 16:11
 */
    $_SESSION = array();

    if(isset($_COOKIE[session_name()])) {
        setcookie(session_name(),'',time()-3600, '/');
    }
    session_destroy();
    header("Location:home.php");
?>